//
//  YWPhotoBrowserCollectionViewLayout.m
//  Chinese
//
//  Created by yellow on 2021/3/8.
//  Copyright © 2021 YSLC. All rights reserved.
//

#import "YWPhotoBrowserCollectionViewLayout.h"

@implementation YWPhotoBrowserCollectionViewLayout
-(void)prepareLayout{
    [super prepareLayout];
    
    // 1.设置itemSize
    self.itemSize = self.collectionView.frame.size;
    self.minimumInteritemSpacing = 0;
    self.minimumLineSpacing = 0;
    self.scrollDirection = UICollectionViewScrollDirectionHorizontal;
    
    // 2.设置collectionView的属性
    self.collectionView.pagingEnabled = YES;
    self.collectionView.showsHorizontalScrollIndicator = NO;
    self.collectionView.showsVerticalScrollIndicator = NO;
}


@end
